﻿using System;
using System.Windows.Media.Imaging;

namespace SilverMap
{
	/// <summary>
	/// A delegate to a method that retrieves an ITile instance for the specified tileId.
	/// </summary>
	/// <param name="tileId">The unique identifier of the tile to retrieve.</param>
	/// <returns>An ITile instance or null if the ITile instance was not found.</returns>
	public delegate ITile GetTileCallback(int tileId);

	/// <summary>
	/// A delegate to a method that returns a WriteableBitmap for the specified imageName.
	/// </summary>
	/// <param name="imageName">The name of the image to retrieve.</param>
	/// <returns>An instance of WriteableBitmap.</returns>
	public delegate WriteableBitmap GetImageCallback(string imageName);
}
